﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasyPayDemo.WeiPay
{
    public class WeiPayConfig
    {
        private const string BaseUrl = "https://t-wapi.bhecard.com:8443";
        private const string BaseUrlLedger = "https://t-wapi.bhecard.com:6111";

        public const string ApiUrlScanPay = BaseUrl+ "/standard/scanPay";
        public const string ApiUrlJsapi = BaseUrl + "/standard/jsapi";
        public const string ApiUrlNative = BaseUrl + "/standard/native";

        public const string ApiUrlTradeQuery = BaseUrl + "/standard/tradeQuery";
        public const string ApiUrlClose = BaseUrl + "/standard/close";

        public const string ApiUrlGetUserId = BaseUrl + "/userId/qrGetUserId";

        /// <summary>
        /// 请求分帐
        /// </summary>
        public const string ApiUrlMpos = BaseUrlLedger + "/ledger/mpos";
        /// <summary>
        /// 分帐撤销
        /// </summary>
        public const string ApiUrlMposCancel = BaseUrlLedger + "/ledger/mposcancel";
        /// <summary>
        /// 分账接收方请求绑定
        /// </summary>
        public const string ApiUrlMposBind = BaseUrlLedger + "/ledger/mposbind";
        /// <summary>
        /// 分账绑定关系查询
        /// </summary>
        public const string ApiUrlMposFindBind = BaseUrlLedger + "/ledger/mposfindbind";
        /// <summary>
        /// 分账请求结果查询
        /// </summary>
        public const string ApiUrlMposFind = BaseUrlLedger + "/ledger/mposfind";
        /// <summary>
        /// 实时退货
        /// </summary>
        public const string ApiUrlMposRefund = BaseUrlLedger + "/ledger/mposrefund";
        /// <summary>
        /// 退货查询
        /// </summary>
        public const string ApiUrlMposFindRefund = BaseUrlLedger + "/ledger/mposfindrefund";
        /// <summary>
        /// 急速退货-账户代扣
        /// </summary>
        public const string ApiUrlAccRefund = BaseUrlLedger + "/ledger/accrefund";



        //文档上商户测试数据
        //public const string orgId = "ORG000000000042";
        //public const string orgMercode = "831135358120001";
        //public const string orgTermno = "21120433";
        //public const string PrivateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJXJo/EewLmDuTChmfUNtfdSosZnlUESPRyGtpvzEw8nwFrShU2dCckcHiEB5n3yejUArjMtnZhLvwVM6dPoWzczScY8mt8I5IY19Mnf1nzOHUocqFZPLAXHdrRs/tVh77UMQIL810t7czIQ8XQ6MarXborprhM85xSJvHujGXNjAgMBAAECgYAa6rZUQSN+8uXXkGK7P7CAdlAb+Uc//0gOFUNBeQfmxEzzxTsBPIQiqLPdWJsT7Pv7BFlJhxv33zy/dhfa5blmRDd/V7ZxMKidobVnwvnEtIIXawjny6+LuXdHywZKlZhKTkvSumIFjpftE/JQ6jv+lwNLR4HMx6Zk1spVvjwu6QJBAP6RR91W2FRgXLX7+Jl15ePa4J/0yS1C/YvGoGo0CggYkSxjraGHZCQYG46/81ld9i84WbukBIU8GMXgmWTrN48CQQCWoWsQmmmK2aB2A/VfTGcLJwDBDt+Rsp1k5s6Y3VKwkyt4Qoqps8QdC8EEwru1hzzc3KZer4P1ZeRI6LgJ1rztAkEAys0OhWSUPtPtyAUOTaNBG77ZSFUImAhQWTRJw5HllAGOVeCrCI4F10NlYNnGkiFq6L9prTTDbSktSybczSsePQJARjm3SqRStFNFxf+OdAGQwNhMN7WRccHOM26PvyDgHkZeq9CKCRgwREJomKmZDcahD28neVlmsg/w4DTvKFce+QJBAMX5si40GHA+Oabb/YxYuAOv9tNbY4wq14UyjaoCEkWP4EfFR60gN0quv4BIryV7hiCTiGFgJSlJfbCu4vVki1U=";


        //客户测试数据
        public const string orgId = "ORG000000000054";
        public const string orgMercode = "531000012972388";
        public const string orgTermno = "W1489518";
        public const string PrivateKey = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAOSxfpYzsR5pKg0lpDb8rwhmJuaN06l+o9wf5FvKFoGCGt0yMmv/OUqsiFzuatZ7VV2hx/WavOVVubMr6YXD8/GINStC/6Hj7ih30XDjQLM1TRmBfhux+FO3LEYUULKbp/LZz+tXDU6QN6Hvw3CGNRhwdAV5Sq1d0REg7tbPuCZpAgMBAAECgYBigmpqvN2AogAxJZO08+dZkNcU3ObdzeU7fqlZOJW1N5vmyCacCpZdKjCbB0ASH5JIANYnX34as3CIU1QGAMBk63Rm7LYF7mPu3r+qYUhwt60FTynxktkKgvtr2slDNc+oF4noAKvzd3W752RWn/lp9rGvhkk8gljaBVa0A+4A+QJBAP6R2b7dDdmICLJFJV8EdKJjThndSQymS4MLT2p3ZdT2ULhMtLjbOy0FeQaBFEkF6cy8TquIvO76qwlNCPlO5qcCQQDl+mz7s7Pd6SaMcuAMPDnuCNqVZNspseP3WmnB3q/Bt3Ad+dTtoopVYgvrIAb+VxVkZ804k3c192wl9BilVTxvAkEA4I4jdztjRim7EhXwezpg8AWNFT+femsOXRATA6VCzHJijdAL8qxgLLyRH22pSSjQLetFsgYyMtQnH1M2wUQaLQJBAKNDNa02NKF8C+a3AoENHF70oCBgegnOhLSr1dpQuVr/W7OcEWIl+qiEs0tW8EANGF2wJwtb/Mwt+vOypvBwYzcCQQCff7Cv+JHXx+voggV+lJqkBpFGjIV2axQ97n4JrBxwok7y42KEhMrKqVRAzXp7iGSxXfq7AkL0JSU7gSz+dg/3";
        
        
        public const string PublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAqRw0nZ1rGTpAeKupP7coS+en6BveJL4aFVt9men4Zzkpuv/IeK6YJ2yk4m8ppZ7TLW4t5WsPEhYOnUfMtjhW4nuQfjgU54juJ1KMHYiX9gaaO+z80ZnaiKD2YsZMFiE9dlTeBlkRL5xXbHa+JonHfVKXMr13oI8oZNKdpnvknQIDAQAB";

        public const string SIGN_TYPE_RSA256 = "RSA2";
        public const string SIGN_TYPE_RSA = "RSA";
    }
}
